package itbour.onetouchshow.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ScrollView;

/**
 * Created by zjl_d on 2017/6/4.
 */
public class NoTouchEventScrollView extends ScrollView {
    public NoTouchEventScrollView(Context context) {
        this(context, null);
    }

    public NoTouchEventScrollView(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public NoTouchEventScrollView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
//        return false;
        return super.onTouchEvent(ev);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        return super.dispatchTouchEvent(ev);
    }
}
